
TARGET  = libcalc.so
CC = gcc

INCLUDES = 
LIBS     = 
CFLAGS   = -Wall -Wshadow -fPIC -shared -g

C_SOURCES=$(wildcard *.c)
C_OBJS=$(patsubst %.c, %.o, $(C_SOURCES))

.c.o:
	$(CC) -c $(CFLAGS) $(INCLUDES) $<

compile: $(C_OBJS)
	$(CC) -o $(TARGET) $^ $(LIBS)

clean:
	rm -f $(C_OBJS) $(TARGET)

	
